package com.bookstore.client.user.dao;

import java.util.List;

import com.bookstore.commons.beans.Order;
import com.bookstore.commons.beans.OrderItem;
import com.bookstore.commons.beans.User;

public interface IUserDao {

	User selectEmail(String email);

	int insertUser(User user);

	int updateUserByActiveCode(String activeCode);

	User selectUserByUsername(User user);

	int updateUser(User user);

	List<Order> selectOrdersByUser(Integer id);

	List<OrderItem> selectOrderItemById(String id);

	void deleteOrder(String id);

	void deletrOrderItem(String id);

	void updateProductById(OrderItem orderItem);

}
